import { IsNotEmpty, IsString,Length,Matches, IsNumber, IsEmail } from "class-validator"

export class UpdateUser {
    @IsNumber()
    @IsNotEmpty({
        message:'id不能为空'
    })
    userId:number;

    @IsString()
    @IsNotEmpty()
    @Length(1,30)
    @Matches(/^[a-zA-Z0-9#$%_-]+$/, {
        message: '用户名只能是字母、数字或者 #、$、%、_、- 这些字符'
    })
    username:string;
   
   
    email:string;

    avatar:string;

    is_disable:string;
}